const fs = require("fs");
let path = require("path");
let filePath = path.join(__dirname,"1.txt");
let reader = fs.createReadStream(filePath);
let writer = fs.createWriteStream(path.join(__dirname,"1-1.txt"))

reader.pipe(writer);
/**
 * fs.readFile  fs.readFileSync
 * fs.writeFile  fs.writeFileSync
 */